using System;
using System.Collections.Generic;
using System.Text;
using Shc.Sql;
using Shc.Json;
namespace CLZ.Data
{
	public static class TableViewBusiness
	{
		public const string Table = "View_Business";
		public const string BusinessID = "BusinessID";
		public const string RegionID = "RegionID";
		public const string ApproveStatusID = "ApproveStatusID";
		public const string LoginName = "LoginName";
		public const string Password = "Password";
		public const string BusinessName = "BusinessName";
		public const string BusinessNo = "BusinessNo";
		public const string Contact = "Contact";
		public const string IDNO = "IDNO";
		public const string TelePhone = "TelePhone";
		public const string Email = "Email";
		public const string Mobile = "Mobile";
		public const string Fax = "Fax";
		public const string Address = "Address";
		public const string ZipCode = "ZipCode";
		public const string WebSite = "WebSite";
		public const string Introduction = "Introduction";
		public const string Description = "Description";
		public const string LastLogin = "LastLogin";
		public const string Activity = "Activity";
		public const string Creater = "Creater";
		public const string CreatedBy = "CreatedBy";
		public const string Created = "Created";
		public const string Modified = "Modified";
		public const string ModifiedBy = "ModifiedBy";
		public const string ModifiedByID = "ModifiedByID";
		public const string IsTransfer = "IsTransfer";
		public const string AccountNo = "AccountNo";
		public const string AccountName = "AccountName";
		public const string MarketsID = "MarketsID";
		public const string BusinessTypeID = "BusinessTypeID";
		public const string SalesTypeID = "SalesTypeID";
		public const string IsOnline = "IsOnline";
		public const string IsOpenVideo = "IsOpenVideo";
		public const string OnLineDate = "OnLineDate";
		public const string OpenVideoDate = "OpenVideoDate";
		public const string VideoPort = "VideoPort";
		public const string LoginIP = "LoginIP";
		public const string ImageUrl = "ImageUrl";
		public const string RecommendType = "RecommendType";
		public const string CityID = "CityID";
		public const string ProvinceID = "ProvinceID";
		public const string CityName = "CityName";
		public const string ProvinceName = "ProvinceName";
		public const string RegionName = "RegionName";
		public const string BusinessTypeName = "BusinessTypeName";
		public const string MarketsName = "MarketsName";
	}
	
	[Serializable]
	public class BaseViewBusiness
		: IDbSessionEntity, IJsonClass
	{
		int m_BusinessID;
		/// <summary>
        /// 
        /// </summary>
        public int BusinessID
        {
            get { return m_BusinessID; }
            set { m_BusinessID = value; }
        }
		
		int? m_RegionID;
		/// <summary>
        /// 
        /// </summary>
        public int? RegionID
        {
            get { return m_RegionID; }
            set { m_RegionID = value; }
        }
		
		int m_ApproveStatusID;
		/// <summary>
        /// 
        /// </summary>
        public int ApproveStatusID
        {
            get { return m_ApproveStatusID; }
            set { m_ApproveStatusID = value; }
        }
		
		string m_LoginName;
		/// <summary>
        /// 
        /// </summary>
        public string LoginName
        {
            get { return m_LoginName; }
            set { m_LoginName = value; }
        }
		
		string m_Password;
		/// <summary>
        /// 
        /// </summary>
        public string Password
        {
            get { return m_Password; }
            set { m_Password = value; }
        }
		
		string m_BusinessName;
		/// <summary>
        /// 
        /// </summary>
        public string BusinessName
        {
            get { return m_BusinessName; }
            set { m_BusinessName = value; }
        }
		
		string m_BusinessNo;
		/// <summary>
        /// 
        /// </summary>
        public string BusinessNo
        {
            get { return m_BusinessNo; }
            set { m_BusinessNo = value; }
        }
		
		string m_Contact;
		/// <summary>
        /// 
        /// </summary>
        public string Contact
        {
            get { return m_Contact; }
            set { m_Contact = value; }
        }
		
		string m_IDNO;
		/// <summary>
        /// 
        /// </summary>
        public string IDNO
        {
            get { return m_IDNO; }
            set { m_IDNO = value; }
        }
		
		string m_TelePhone;
		/// <summary>
        /// 
        /// </summary>
        public string TelePhone
        {
            get { return m_TelePhone; }
            set { m_TelePhone = value; }
        }
		
		string m_Email;
		/// <summary>
        /// 
        /// </summary>
        public string Email
        {
            get { return m_Email; }
            set { m_Email = value; }
        }
		
		string m_Mobile;
		/// <summary>
        /// 
        /// </summary>
        public string Mobile
        {
            get { return m_Mobile; }
            set { m_Mobile = value; }
        }
		
		string m_Fax;
		/// <summary>
        /// 
        /// </summary>
        public string Fax
        {
            get { return m_Fax; }
            set { m_Fax = value; }
        }
		
		string m_Address;
		/// <summary>
        /// 
        /// </summary>
        public string Address
        {
            get { return m_Address; }
            set { m_Address = value; }
        }
		
		string m_ZipCode;
		/// <summary>
        /// 
        /// </summary>
        public string ZipCode
        {
            get { return m_ZipCode; }
            set { m_ZipCode = value; }
        }
		
		string m_WebSite;
		/// <summary>
        /// 
        /// </summary>
        public string WebSite
        {
            get { return m_WebSite; }
            set { m_WebSite = value; }
        }
		
		string m_Introduction;
		/// <summary>
        /// 
        /// </summary>
        public string Introduction
        {
            get { return m_Introduction; }
            set { m_Introduction = value; }
        }
		
		string m_Description;
		/// <summary>
        /// 
        /// </summary>
        public string Description
        {
            get { return m_Description; }
            set { m_Description = value; }
        }
		
		DateTime? m_LastLogin;
		/// <summary>
        /// 
        /// </summary>
        public DateTime? LastLogin
        {
            get { return m_LastLogin; }
            set { m_LastLogin = value; }
        }
		
		bool m_Activity;
		/// <summary>
        /// 
        /// </summary>
        public bool Activity
        {
            get { return m_Activity; }
            set { m_Activity = value; }
        }
		
		int m_Creater;
		/// <summary>
        /// 
        /// </summary>
        public int Creater
        {
            get { return m_Creater; }
            set { m_Creater = value; }
        }
		
		string m_CreatedBy;
		/// <summary>
        /// 
        /// </summary>
        public string CreatedBy
        {
            get { return m_CreatedBy; }
            set { m_CreatedBy = value; }
        }
		
		DateTime m_Created;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Created
        {
            get { return m_Created; }
            set { m_Created = value; }
        }
		
		DateTime m_Modified;
		/// <summary>
        /// 
        /// </summary>
        public DateTime Modified
        {
            get { return m_Modified; }
            set { m_Modified = value; }
        }
		
		string m_ModifiedBy;
		/// <summary>
        /// 
        /// </summary>
        public string ModifiedBy
        {
            get { return m_ModifiedBy; }
            set { m_ModifiedBy = value; }
        }
		
		int? m_ModifiedByID;
		/// <summary>
        /// 
        /// </summary>
        public int? ModifiedByID
        {
            get { return m_ModifiedByID; }
            set { m_ModifiedByID = value; }
        }
		
		bool m_IsTransfer;
		/// <summary>
        /// 
        /// </summary>
        public bool IsTransfer
        {
            get { return m_IsTransfer; }
            set { m_IsTransfer = value; }
        }
		
		string m_AccountNo;
		/// <summary>
        /// 
        /// </summary>
        public string AccountNo
        {
            get { return m_AccountNo; }
            set { m_AccountNo = value; }
        }
		
		string m_AccountName;
		/// <summary>
        /// 
        /// </summary>
        public string AccountName
        {
            get { return m_AccountName; }
            set { m_AccountName = value; }
        }
		
		int? m_MarketsID;
		/// <summary>
        /// 
        /// </summary>
        public int? MarketsID
        {
            get { return m_MarketsID; }
            set { m_MarketsID = value; }
        }
		
		int? m_BusinessTypeID;
		/// <summary>
        /// 
        /// </summary>
        public int? BusinessTypeID
        {
            get { return m_BusinessTypeID; }
            set { m_BusinessTypeID = value; }
        }
		
		int? m_SalesTypeID;
		/// <summary>
        /// 
        /// </summary>
        public int? SalesTypeID
        {
            get { return m_SalesTypeID; }
            set { m_SalesTypeID = value; }
        }
		
		bool m_IsOnline;
		/// <summary>
        /// 
        /// </summary>
        public bool IsOnline
        {
            get { return m_IsOnline; }
            set { m_IsOnline = value; }
        }
		
		bool m_IsOpenVideo;
		/// <summary>
        /// 
        /// </summary>
        public bool IsOpenVideo
        {
            get { return m_IsOpenVideo; }
            set { m_IsOpenVideo = value; }
        }
		
		DateTime? m_OnLineDate;
		/// <summary>
        /// 
        /// </summary>
        public DateTime? OnLineDate
        {
            get { return m_OnLineDate; }
            set { m_OnLineDate = value; }
        }
		
		DateTime? m_OpenVideoDate;
		/// <summary>
        /// 
        /// </summary>
        public DateTime? OpenVideoDate
        {
            get { return m_OpenVideoDate; }
            set { m_OpenVideoDate = value; }
        }
		
		int m_VideoPort;
		/// <summary>
        /// 
        /// </summary>
        public int VideoPort
        {
            get { return m_VideoPort; }
            set { m_VideoPort = value; }
        }
		
		string m_LoginIP;
		/// <summary>
        /// 
        /// </summary>
        public string LoginIP
        {
            get { return m_LoginIP; }
            set { m_LoginIP = value; }
        }
		
		string m_ImageUrl;
		/// <summary>
        /// 
        /// </summary>
        public string ImageUrl
        {
            get { return m_ImageUrl; }
            set { m_ImageUrl = value; }
        }
		
		int m_RecommendType;
		/// <summary>
        /// 
        /// </summary>
        public int RecommendType
        {
            get { return m_RecommendType; }
            set { m_RecommendType = value; }
        }
		
		int? m_CityID;
		/// <summary>
        /// 
        /// </summary>
        public int? CityID
        {
            get { return m_CityID; }
            set { m_CityID = value; }
        }
		
		int? m_ProvinceID;
		/// <summary>
        /// 
        /// </summary>
        public int? ProvinceID
        {
            get { return m_ProvinceID; }
            set { m_ProvinceID = value; }
        }
		
		string m_CityName;
		/// <summary>
        /// 
        /// </summary>
        public string CityName
        {
            get { return m_CityName; }
            set { m_CityName = value; }
        }
		
		string m_ProvinceName;
		/// <summary>
        /// 
        /// </summary>
        public string ProvinceName
        {
            get { return m_ProvinceName; }
            set { m_ProvinceName = value; }
        }
		
		string m_RegionName;
		/// <summary>
        /// 
        /// </summary>
        public string RegionName
        {
            get { return m_RegionName; }
            set { m_RegionName = value; }
        }
		
		string m_BusinessTypeName;
		/// <summary>
        /// 
        /// </summary>
        public string BusinessTypeName
        {
            get { return m_BusinessTypeName; }
            set { m_BusinessTypeName = value; }
        }
		
		string m_MarketsName;
		/// <summary>
        /// 
        /// </summary>
        public string MarketsName
        {
            get { return m_MarketsName; }
            set { m_MarketsName = value; }
        }
		
		
		#region IDbSessionEntity Members
		public void ReadDBData(RowDataReader reader)
        {
            m_BusinessID = reader[TableViewBusiness.BusinessID];
            m_RegionID = reader[TableViewBusiness.RegionID];
            m_ApproveStatusID = reader[TableViewBusiness.ApproveStatusID];
            m_LoginName = reader[TableViewBusiness.LoginName];
            m_Password = reader[TableViewBusiness.Password];
            m_BusinessName = reader[TableViewBusiness.BusinessName];
            m_BusinessNo = reader[TableViewBusiness.BusinessNo];
            m_Contact = reader[TableViewBusiness.Contact];
            m_IDNO = reader[TableViewBusiness.IDNO];
            m_TelePhone = reader[TableViewBusiness.TelePhone];
            m_Email = reader[TableViewBusiness.Email];
            m_Mobile = reader[TableViewBusiness.Mobile];
            m_Fax = reader[TableViewBusiness.Fax];
            m_Address = reader[TableViewBusiness.Address];
            m_ZipCode = reader[TableViewBusiness.ZipCode];
            m_WebSite = reader[TableViewBusiness.WebSite];
            m_Introduction = reader[TableViewBusiness.Introduction];
            m_Description = reader[TableViewBusiness.Description];
            m_LastLogin = reader[TableViewBusiness.LastLogin];
            m_Activity = reader[TableViewBusiness.Activity];
            m_Creater = reader[TableViewBusiness.Creater];
            m_CreatedBy = reader[TableViewBusiness.CreatedBy];
            m_Created = reader[TableViewBusiness.Created];
            m_Modified = reader[TableViewBusiness.Modified];
            m_ModifiedBy = reader[TableViewBusiness.ModifiedBy];
            m_ModifiedByID = reader[TableViewBusiness.ModifiedByID];
            m_IsTransfer = reader[TableViewBusiness.IsTransfer];
            m_AccountNo = reader[TableViewBusiness.AccountNo];
            m_AccountName = reader[TableViewBusiness.AccountName];
            m_MarketsID = reader[TableViewBusiness.MarketsID];
            m_BusinessTypeID = reader[TableViewBusiness.BusinessTypeID];
            m_SalesTypeID = reader[TableViewBusiness.SalesTypeID];
            m_IsOnline = reader[TableViewBusiness.IsOnline];
            m_IsOpenVideo = reader[TableViewBusiness.IsOpenVideo];
            m_OnLineDate = reader[TableViewBusiness.OnLineDate];
            m_OpenVideoDate = reader[TableViewBusiness.OpenVideoDate];
            m_VideoPort = reader[TableViewBusiness.VideoPort];
            m_LoginIP = reader[TableViewBusiness.LoginIP];
            m_ImageUrl = reader[TableViewBusiness.ImageUrl];
            m_RecommendType = reader[TableViewBusiness.RecommendType];
            m_CityID = reader[TableViewBusiness.CityID];
            m_ProvinceID = reader[TableViewBusiness.ProvinceID];
            m_CityName = reader[TableViewBusiness.CityName];
            m_ProvinceName = reader[TableViewBusiness.ProvinceName];
            m_RegionName = reader[TableViewBusiness.RegionName];
            m_BusinessTypeName = reader[TableViewBusiness.BusinessTypeName];
            m_MarketsName = reader[TableViewBusiness.MarketsName];
        }
		
		public void WriteDBData(RowDataWriter writer)
        {
        }

        public void SetIdentityAfterInsert(DBObject idd)
        {
        }
		
		public string TableName
        {
            get { return TableViewBusiness.Table; }
        }
		#endregion
		
		
		#region IJsonClass Members

        public void JsonDeSerializeObj(JsonHashTable hashToRead)
        {
             m_BusinessID = hashToRead["BusinessID"];
			 
             m_RegionID = hashToRead["RegionID"];
			 
             m_ApproveStatusID = hashToRead["ApproveStatusID"];
			 
             m_LoginName = hashToRead["LoginName"];
			 
             m_Password = hashToRead["Password"];
			 
             m_BusinessName = hashToRead["BusinessName"];
			 
             m_BusinessNo = hashToRead["BusinessNo"];
			 
             m_Contact = hashToRead["Contact"];
			 
             m_IDNO = hashToRead["IDNO"];
			 
             m_TelePhone = hashToRead["TelePhone"];
			 
             m_Email = hashToRead["Email"];
			 
             m_Mobile = hashToRead["Mobile"];
			 
             m_Fax = hashToRead["Fax"];
			 
             m_Address = hashToRead["Address"];
			 
             m_ZipCode = hashToRead["ZipCode"];
			 
             m_WebSite = hashToRead["WebSite"];
			 
             m_Introduction = hashToRead["Introduction"];
			 
             m_Description = hashToRead["Description"];
			 
             m_LastLogin = hashToRead["LastLogin"];
			 
             m_Activity = hashToRead["Activity"];
			 
             m_Creater = hashToRead["Creater"];
			 
             m_CreatedBy = hashToRead["CreatedBy"];
			 
             m_Created = hashToRead["Created"];
			 
             m_Modified = hashToRead["Modified"];
			 
             m_ModifiedBy = hashToRead["ModifiedBy"];
			 
             m_ModifiedByID = hashToRead["ModifiedByID"];
			 
             m_IsTransfer = hashToRead["IsTransfer"];
			 
             m_AccountNo = hashToRead["AccountNo"];
			 
             m_AccountName = hashToRead["AccountName"];
			 
             m_MarketsID = hashToRead["MarketsID"];
			 
             m_BusinessTypeID = hashToRead["BusinessTypeID"];
			 
             m_SalesTypeID = hashToRead["SalesTypeID"];
			 
             m_IsOnline = hashToRead["IsOnline"];
			 
             m_IsOpenVideo = hashToRead["IsOpenVideo"];
			 
             m_OnLineDate = hashToRead["OnLineDate"];
			 
             m_OpenVideoDate = hashToRead["OpenVideoDate"];
			 
             m_VideoPort = hashToRead["VideoPort"];
			 
             m_LoginIP = hashToRead["LoginIP"];
			 
             m_ImageUrl = hashToRead["ImageUrl"];
			 
             m_RecommendType = hashToRead["RecommendType"];
			 
             m_CityID = hashToRead["CityID"];
			 
             m_ProvinceID = hashToRead["ProvinceID"];
			 
             m_CityName = hashToRead["CityName"];
			 
             m_ProvinceName = hashToRead["ProvinceName"];
			 
             m_RegionName = hashToRead["RegionName"];
			 
             m_BusinessTypeName = hashToRead["BusinessTypeName"];
			 
             m_MarketsName = hashToRead["MarketsName"];
			 
        }

        public void JsonSerializeObj(JsonHashTable hashToFill)
        {
            hashToFill["BusinessID"] = BusinessID;
			
            hashToFill["RegionID"] = RegionID;
			
            hashToFill["ApproveStatusID"] = ApproveStatusID;
			
            hashToFill["LoginName"] = LoginName;
			
            hashToFill["Password"] = Password;
			
            hashToFill["BusinessName"] = BusinessName;
			
            hashToFill["BusinessNo"] = BusinessNo;
			
            hashToFill["Contact"] = Contact;
			
            hashToFill["IDNO"] = IDNO;
			
            hashToFill["TelePhone"] = TelePhone;
			
            hashToFill["Email"] = Email;
			
            hashToFill["Mobile"] = Mobile;
			
            hashToFill["Fax"] = Fax;
			
            hashToFill["Address"] = Address;
			
            hashToFill["ZipCode"] = ZipCode;
			
            hashToFill["WebSite"] = WebSite;
			
            hashToFill["Introduction"] = Introduction;
			
            hashToFill["Description"] = Description;
			
            hashToFill["LastLogin"] = LastLogin;
			
            hashToFill["Activity"] = Activity;
			
            hashToFill["Creater"] = Creater;
			
            hashToFill["CreatedBy"] = CreatedBy;
			
            hashToFill["Created"] = Created;
			
            hashToFill["Modified"] = Modified;
			
            hashToFill["ModifiedBy"] = ModifiedBy;
			
            hashToFill["ModifiedByID"] = ModifiedByID;
			
            hashToFill["IsTransfer"] = IsTransfer;
			
            hashToFill["AccountNo"] = AccountNo;
			
            hashToFill["AccountName"] = AccountName;
			
            hashToFill["MarketsID"] = MarketsID;
			
            hashToFill["BusinessTypeID"] = BusinessTypeID;
			
            hashToFill["SalesTypeID"] = SalesTypeID;
			
            hashToFill["IsOnline"] = IsOnline;
			
            hashToFill["IsOpenVideo"] = IsOpenVideo;
			
            hashToFill["OnLineDate"] = OnLineDate;
			
            hashToFill["OpenVideoDate"] = OpenVideoDate;
			
            hashToFill["VideoPort"] = VideoPort;
			
            hashToFill["LoginIP"] = LoginIP;
			
            hashToFill["ImageUrl"] = ImageUrl;
			
            hashToFill["RecommendType"] = RecommendType;
			
            hashToFill["CityID"] = CityID;
			
            hashToFill["ProvinceID"] = ProvinceID;
			
            hashToFill["CityName"] = CityName;
			
            hashToFill["ProvinceName"] = ProvinceName;
			
            hashToFill["RegionName"] = RegionName;
			
            hashToFill["BusinessTypeName"] = BusinessTypeName;
			
            hashToFill["MarketsName"] = MarketsName;
			
        }

        #endregion
		
	}
}
